package com.zh.operation.service.impl;

import com.zh.common.utils.StringUtil;
import com.zh.operation.dao.RecipeEatDao;
import com.zh.operation.domain.RecipeEatDO;
import com.zh.operation.service.RecipeEatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class RecipeEatServiceImpl implements RecipeEatService {
	@Autowired
	private RecipeEatDao recipeEatDao;
	
	@Override
	public RecipeEatDO get(String id){
		return recipeEatDao.get(id);
	}
	
	@Override
	public List<RecipeEatDO> list(Map<String, Object> map){
		return recipeEatDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return recipeEatDao.count(map);
	}
	
	@Override
	public int save(RecipeEatDO recipeEat){
		recipeEat.setId(StringUtil.generalKeyword());
		return recipeEatDao.save(recipeEat);
	}
	
	@Override
	public int update(RecipeEatDO recipeEat){
		return recipeEatDao.update(recipeEat);
	}
	
	@Override
	public int remove(String id){
		return recipeEatDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return recipeEatDao.batchRemove(ids);
	}
	
}
